package com.local.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

@Entity
@Table(name = "local_equipment")
public class LocalEquipment {
    @NotEmpty
    @Length(min=1,max=32)
    @Column(name = "equipment_uuid")
    private String equipmentUuid;

    @Column(name = "exchange_no")
    private String exchangeNo;

    @Column(name = "camera_no")
    private String cameraNo;

    @Column(name = "intersection_name")
    private String intersectionName;

    @Column(name = "install_position")
    private String installPosition;

    @Column(name = "install_effect")
    private String installEffect;

    @Column(name = "status")
    private Byte status;

    @Column(name = "station_uuid")
    private String stationUuid;

    @Column(name = "camera_ip")
    private String cameraIp;

    @Column(name = "attr_1")
    private String attr1;

    @Column(name = "attr_2")
    private String attr2;

    @Column(name = "attr_3")
    private String attr3;

    public String getEquipmentUuid() {
        return equipmentUuid;
    }

    public void setEquipmentUuid(String equipmentUuid) {
        this.equipmentUuid = equipmentUuid == null ? null : equipmentUuid.trim();
    }

    public String getExchangeNo() {
        return exchangeNo;
    }

    public void setExchangeNo(String exchangeNo) {
        this.exchangeNo = exchangeNo == null ? null : exchangeNo.trim();
    }

    public String getCameraNo() {
        return cameraNo;
    }

    public void setCameraNo(String cameraNo) {
        this.cameraNo = cameraNo == null ? null : cameraNo.trim();
    }

    public String getIntersectionName() {
        return intersectionName;
    }

    public void setIntersectionName(String intersectionName) {
        this.intersectionName = intersectionName == null ? null : intersectionName.trim();
    }

    public String getInstallPosition() {
        return installPosition;
    }

    public void setInstallPosition(String installPosition) {
        this.installPosition = installPosition == null ? null : installPosition.trim();
    }

    public String getInstallEffect() {
        return installEffect;
    }

    public void setInstallEffect(String installEffect) {
        this.installEffect = installEffect == null ? null : installEffect.trim();
    }

    public Byte getStatus() {
        return status;
    }

    public void setStatus(Byte status) {
        this.status = status;
    }

    public String getStationUuid() {
        return stationUuid;
    }

    public void setStationUuid(String stationUuid) {
        this.stationUuid = stationUuid == null ? null : stationUuid.trim();
    }

    public String getCameraIp() {
        return cameraIp;
    }

    public void setCameraIp(String cameraIp) {
        this.cameraIp = cameraIp == null ? null : cameraIp.trim();
    }

    public String getAttr1() {
        return attr1;
    }

    public void setAttr1(String attr1) {
        this.attr1 = attr1 == null ? null : attr1.trim();
    }

    public String getAttr2() {
        return attr2;
    }

    public void setAttr2(String attr2) {
        this.attr2 = attr2 == null ? null : attr2.trim();
    }

    public String getAttr3() {
        return attr3;
    }

    public void setAttr3(String attr3) {
        this.attr3 = attr3 == null ? null : attr3.trim();
    }
}